package com.im.chat.service.impl;

import com.im.chat.base.BasePageServiceImpl;
import com.im.chat.dao.AuthUserMapper;
import com.im.chat.dao.ChatSessionMapper;
import com.im.chat.model.AuthUser;
import com.im.chat.model.ChatSession;
import com.im.chat.service.AuthUserService;
import com.im.chat.service.ChatSessionService;
import com.im.chat.util.ChatConstant;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class AuthUserServiceImpl implements AuthUserService {
    @Autowired
    private AuthUserMapper authUserMapper;

    @Override
    public AuthUser findById(Long id) {
        return authUserMapper.selectByPrimaryKey(id);
    }

    @Override
    public AuthUser findByInviteCode(String inviteCode) {
        return authUserMapper.findByInviteCode(inviteCode);
    }

}
